package com.imc.platform.base.schoolmaster.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.imc.platform.base.schoolmaster.dao.ISchoolMasterMapper;
import com.imc.platform.base.schoolmaster.service.ISchoolMasterService;
import com.imc.platform.base.user.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 类描述:
 * 开发者:SJC
 * 创建时间:2018-8-15 19:30:36
 */
@Service
public class SchoolMasterServiceImpl implements ISchoolMasterService {
    @Autowired
    ISchoolMasterMapper iSchoolMasterMapper;

    @Override
    public PageInfo <User> querySchoolMasterUser(String duty,String orgId,String duty2,int pageNum, int pageSize) {
        PageHelper.startPage(pageNum, pageSize, true);
        PageInfo d = new PageInfo <>(iSchoolMasterMapper.querySchoolMasterUser(duty,orgId,duty2));
        return d;
    }
}
